<?php require APP_ROOT.'public/top.php';?>
<div class="admincp-container unfold">
<?php require APP_ROOT.'public/left.php';?>



    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/echarts.min.js"></script>
    <style>
        #someline {
            width: 100%;
            height: 99%;
        }
    </style>
    <script>
      $(document).ready(function(){
        var chart = document.getElementById("someline");
        var echart = echarts.init(chart);
        option = {
            title: {
                text: '折线图堆叠'
            },
            tooltip: {
                trigger: 'axis'
            },
            legend: {
                data: ['邮件营销', '联盟广告', '视频广告', '直接访问', '搜索引擎']
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            toolbox: {
                feature: {
                    saveAsImage: {}
                }
            },
            xAxis: {
                type: 'category',
                boundaryGap: false,
                data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
            },
            yAxis: {
                type: 'value'
            },
            series: [
                {
                    name: '邮件营销',
                    type: 'line',
                    stack: '总量',
                    data: [120, 132, 101, 134, 90, 230, 210]
                },
                {
                    name: '联盟广告',
                    type: 'line',
                    stack: '总量',
                    data: [220, 182, 191, 234, 290, 330, 310]
                },
                {
                    name: '视频广告',
                    type: 'line',
                    stack: '总量',
                    data: [150, 232, 201, 154, 190, 330, 410]
                },
                {
                    name: '直接访问',
                    type: 'line',
                    stack: '总量',
                    data: [320, 332, 301, 334, 390, 330, 320]
                },
                {
                    name: '搜索引擎',
                    type: 'line',
                    stack: '总量',
                    data: [820, 932, 901, 934, 1290, 1330, 1320]
                }
            ]
        };



        echart.setOption(option);
      });
    </script>
<div id="someline" style="width:600px;"></div>
    
<div class="right-nav">

<div class="pages">


<div class="flexigrid">
    <div class="mDiv">
      <div class="ftitle">
        <h3>广告列表</h3>
        <h5>(共2条记录)</h5>
      </div>
      <div title="刷新数据" class="pReload"><i class="fa fa-refresh"></i></div>	   
	  
    </div>

    
    
    <div id="explanation" class="explanation" style="color: rgb(44, 188, 163); background-color: rgb(237, 251, 248); width: 99%; height: 100%;">
		<div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
			<h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
			<span title="收起提示" id="explanationZoom" style="display: block;"></span>
		</div>
		<ul>
			<li>账号：<?php echo $member['username'];?></li>
            <li>可用余额：<span style="color:#f00;">￥<?php echo $balance;?></span></li>
		</ul>
	</div>
    
    <div class="tDiv">
      <div class="tDiv2">
        
		<div class="fbutton"><a class="<?php if($type_id==63)echo 'on';?>" href="index.php?m=plan&a=index&type_id=63"><div class="add" title="充值记录"><span><i class="fa fa-search"></i>充值记录</span></div></a></div>
        <div class="fbutton"><a class="<?php if($type_id==64)echo 'on';?>" href="index.php?m=group&a=index&type_id=64"><div class="add" title="消费明细"><span><i class="fa fa-search"></i>消费明细</span></div></a></div>

                        
      </div>
      <div style="clear:both"></div>
    </div>


    <div class="bDiv" style="height: auto;">
      <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
        <table>
        	
            <thead class="tDiv">
            <tr>
              <td class="sign" axis="col0">
                <div style="width: 24px;"><i class="ico-check"></i></div>
              </td>
              
              
			  
              <td align="left" abbr="article_title" axis="col3" class="">
                <div style="text-align: center; width: 100px;" class="">时间</div>
              </td>
              <td align="left" abbr="article_title" axis="col3" class="">
                <div style="text-align: center; width: 100px;" class="">金额</div>
              </td>
              <td align="center" axis="col1" class="">
                <div style="text-align: left; width: 100px;">余额</div>
              </td>
              <td style="width:100%" axis="col7">
                <div></div>
              </td>
            </tr>
          </thead>
          
          <tbody>
<?php $member_data=M('account')->where(array('member_id'=>$member_id))->order('account_id desc')->select();
							foreach($member_data as $k=>$v){
						?>

                          <tr>
                <td class="sign">
                  <div style="width: 24px;"><i class="ico-check"></i></div>
                </td>
                
               
                <td align="left" class="">
                 <div style="text-align: center; width: 200px;">
                  <?php echo date('Y-m-d h:i:s',$v['date'])?>

                 </div>
                </td>
                
                
                <td align="center" class="">
                  <div style="text-align: center; width: 100px;">                    
                    <?php
		if($v['amount_type']==1)
		{
			 echo "+".$v['amount'];
		}
		else
		{
			echo "-".$v['amount'];
		}?>
        </div>
                  
                </td>
                <td align="" class="" style="width: 100%;">
                  <div><?php echo $v['balance'];?></div>
                </td>
              </tr>
       <?php } ?>
              
                      </tbody>
        </table>
	 <!--分页位置--> 
    <div class="dataTables_paginate paging_simple_numbers"><ul class="pagination">    </ul></div> </div>        
<script>
function delfunc(obj){
      layer.confirm('确认删除？', {
                btn: ['确定','取消'] //按钮
              }, function(){
                // 确定
                $.ajax({
                  type : 'post',
                  url : $(obj).attr('data-url'),
                  data : {act:'del',del_id:$(obj).attr('data-id')},
                  dataType : 'json',
                  success : function(data){
                    layer.closeAll();
                    if(data.status==1){
                      layer.msg(data.msg, {icon: 1});
                      $(obj).parent().parent().parent('tr').remove();
                    }else{
                      layer.msg(data.msg, {icon: 2,time: 2000});
                    }
                  }
                })
              }, function(index){
                layer.close(index);
              }
      );
    }
</script>
      </div>
    </div>
    </div>
</div>    
</div>
<?php require APP_ROOT.'public/bottom.php';?>
